<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <div v-bind:id="id">111</div>
    <img :src="url" alt="">
    <div :a="a">aa</div>
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const msg = '这是全局变量';
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
          id: 'box',
          url: 'https://img2.baidu.com/it/u=2239700609,3622424197&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
          a: '这是自定义属性'
        }
      }
    })
    app.mount('#app')

  
  </script>
</body>
</html>